﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace KZ400BApp
{
    /// <summary>
    /// TPlanAdd.xaml 的交互逻辑
    /// </summary>
    public partial class TPlanEdit : Window
    {
        int m_tpID;
        public TPlanEdit(int tpID)
        {
            InitializeComponent();
            m_tpID = tpID;
            Loaded += new RoutedEventHandler(TPlanEdit_Loaded);
            tpEdit.OnClose +=new KZ400B.Controls.UserControlClose(tpEdit_OnClose);
        }

        void tpEdit_OnClose()
        {
            this.Close();
        }

        void TPlanEdit_Loaded(object sender, RoutedEventArgs e)
        {
            tpEdit.TPlanID = m_tpID;
        }
    }
}
